<script>
try {
	try {
		throw new Error("error");
	}
	catch (e) {
		alert('inner: ' + e.message);
		console.error("inner", e.message);
		throw e;
	}
	finally {
		alert('finally');
		console.log("finally");
	}
}
catch (e) {
	alert('outer: ' + e.message);
	console.error("outer", e.message);
}

</script>